]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[StTextureCache] The requested size needs to be part of the cache key
authorColin Walters <walters@verbum.org>
Tue, 9 Mar 2010 19:08:22 +0000 (14:08 -0500)
committerColin Walters <walters@verbum.org>
Tue, 9 Mar 2010 19:08:22 +0000 (14:08 -0500)
Otherwise we'll only render it once, which is clearly wrong.

src/st/st-texture-cache.c

index ad33e52b498fd195c0973a4e2032f36d09fac2e1..5731ef977ac78bea228c4adbfe6fdb9b5f494894 100644 (file)
@@ -946,7 +946,7 @@ st_texture_cache_load_gicon (StTextureCache    *cache,
   GtkIconInfo *info;
 
   gicon_string = g_icon_to_string (icon);
-  key = g_strconcat (CACHE_PREFIX_GICON, gicon_string, NULL);
+  key = g_strdup_printf ("%s%s,size=%d", CACHE_PREFIX_GICON, gicon_string, size);
   g_free (gicon_string);
 
   if (create_texture_and_ensure_request (cache, key, size, &request, &texture))